﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="taglib.jsp"%>
<%@page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>课程搜索</title>
<link href="css/global.css" rel="stylesheet" type="text/css" />
	<script src="Scripts/jquery-1.4.4.min.js"></script>
	<script src="Scripts/slides.min1.jquery.js"></script>
	<script>
		$(function(){
			$('#slides1').slides1({
				preload: true,
				preloadImage: 'img/loading.gif',
				play: 7000,
				pause: 4500,
				hoverPause: true
			});
		});
		$(function(){
			//alert("a");
			$('#top_nav_coursesearch')[0].className = 'current';
		});
	</script>
<!--[if IE 6]><script type="text/javascript" src="iepng.js"></script><![endif]-->
<script type="text/javascript">
   EvPNG.fix('div, ul, img, li, input,form,a,');  //EvPNG.fix('包含透明PNG图片的标签'); 多个标签之间用英文逗号隔开。
</script>
</head>

<body>
<div class="mianbody">
  <jsp:include page="top.jsp" /> 
<!--页面中部-->
<div class="pc_link">
	<div id="slides1">
				<div class="slides_container1">
					<a href="#" ><img src="images/kc_pc.jpg" ></a>
					<a href="#"><img src="images/kc_pc.jpg"></a>
					<a href="#" ><img src="images/kc_pc.jpg" ></a>
					<a href="#"><img src="images/kc_pc.jpg"></a>	
                </div>
			</div>     

</div>
<div class="search_ct">
<form action="<c:url value="courseSearch.do"/>" method="get" class="search_form">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right" height="48px" width="68">课程级别</td>
    <td width="69" align="left">
    	<select name="level">
    		<option value="0">全部</option>
    		<option value="1">初级</option>
    		<option value="2">中级</option>
    		<option value="3">中高级</option>
    		<option value="4">高级</option>
    		<option value="5">精通级</option>
    	</select>
    	</td>
    <td width="67" align="left">上课时间</td>
    <td width="78" align="left">
    	<select name="date">
    		<option value="10" selected="selected">全部</option>
    		<option value="8">工作日</option>
    		<option value="9">周末</option>
    		<option value="1">周一</option>
    		<option value="2">周二</option>
    		<option value="3">周三</option>
    		<option value="4">周四</option>
    		<option value="5">周五</option>
    		<option value="6">周六</option>
    		<option value="7">周日</option>
    	</select>
    	</td>
     <td align="left" width="140">
     	<select name="time">
     		<option value="0">全部</option>
    		<option value="1">上午</option>
    		<option value="2">中午</option>
    		<option value="3">晚上</option>
    	</select>
    </td>
    <td width="120" align="left">只显示可选
      <input name="available" type="checkbox" checked="checked" />
     </td>
    <td width="196" align="right"><input name="keyword" type="text"  class="sinput"/></td>
    <td width="59" align="left" valign="middle">
    <input name="submit" type="image" src="images/search_btn.jpg" />
    </td>
  </tr>
</table>

</form>
</div>
<div class="kc_list">
<table width="100%" border="0">
  <tr>
    <td  class="kc_list_s">课程名称(ID)</td>
    <td class="kc_list_s">座位状态已选/未选</td>
    <td class="kc_list_s">级别</td>
    <td class="kc_list_s">课程开始日期</td>
    <td class="kc_list_s">上课时间</td>
    <td  class="kc_list_s">剩余课时/总课时</td>
    <td  class="kc_list_s">状态 </td>
    <td class="kc_list_s">教师</td>
    <td  class="kc_list_s">操作</td>
  </tr>
  <c:forEach items="${pageDataList.source}" var="item" varStatus="status">
  <tr>
    <td class="kc_list_t"><a target="_blank" href="<c:url value="courseseries.do?id=${item.id}"/>">${item.name}(${item.id})</a>&nbsp;</td>
    <td class="kc_list_t">${item.occupyNum}/${item.capacity}&nbsp;</td>
    <td class="kc_list_t">${item.level}&nbsp;</td>
    <td class="kc_list_t"><fmt:formatDate value="${item.startDate}"
													pattern="yyyy-MM-dd" /></td>
    <td class="kc_list_t"><fmt:formatDate value="${item.startDate}"
													pattern="HH-mm" /></td>
    <td class="kc_list_t">&nbsp;</td>
    <td class="kc_list_t">&nbsp;</td>
    <td class="kc_list_t">${item.teacher.name}</td>
    <td class="kc_list_t"><a href="<c:url value="selectCourseSeries.do?id=${item.id}"/>">选课</a></td>
  </tr>
  </c:forEach>
</table>

</div>
<!----> 
<div style="clear:both;"></div>
  <jsp:include page="bottom.jsp" />
</div>
</div>
</body>
</html>
